package subject.homework.zoosystrem.serve;
import subject.homework.zoosystrem.father.*;
import subject.homework.zoosystrem.sons1.UserAdmin;
import subject.homework.zoosystrem.sons1.UserAnimal;


public interface IUserDataAccess {

    public boolean addUser(UserAnimal user);
    public boolean addAdmin(UserAdmin user);

    public boolean deleteUser( UserAnimal user );
    public boolean deleteAdmin( UserAdmin user );

    public boolean deleteUser( String userName );
    public boolean deleteAdmin( String adminName );

    public boolean updateUser(UserAnimal oldUser,UserAnimal newUser);


    public User findUser(String userName);
    public User findAdmin(String adminName);

}
